<template>
    <div class="cart-list">
        <Cart-List-Item v-for="(item, i) in cartList" :key="i" :product="item"/>
    </div>
</template>
<script>
//   vuex
import { mapGetters } from 'vuex'

import CartListItem from './CartListItem'
export default {
    name: 'CartList',
    computed: {
       ...mapGetters(['cartList'])
    },
    components: {
        CartListItem
    }
}
</script>

<style scoped>
</style>